package net.zjitc.interfaces.usb;

/**
 * @Author admin
 * @Date 2019/3/22 11:46
 * 测试类
 */
public class Test {
    public static void main(String[] args) {
        Computer computer=new Computer();
//      向计算机中添加设备
        USB usb1=new Mouse();
        USB usb2=new KeyBoard();
        USB usb3=new Mic();
        computer.add(usb1);
        computer.add(usb2);
        computer.add(usb3);

        computer.powerOn();
        System.out.println("---------");
        computer.powerOff();
    }
}
